package com.example.java3mysql.dao;

import com.example.java3mysql.entity.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;

@Repository
public interface JpaStudent extends JpaRepository<Student,Long> {
    Student findByStudentCode(String code);
    @Transactional
    void deleteByStudentCode(String code);
}
